<%inherit file="/base/base-index.mako"/>

<%def name="title()">Top Similarity ${c.kernel_id}</%def>
<h2 align="center">
    <a href="/news/top_similarity?kernel_id=${c.kernel_id}&start=${max(c.start - c.size, 0)}&end=${c.start}&size=${c.size}"><<<</a>&nbsp;
    <a href="/news/top_similarity?kernel_id=${c.kernel_id}&start=${c.end}&end=${c.end + c.size}&size=${c.size}">>>></a>
</h2>

<div>
    % for n in c.top:
        % if n.news.class_id == 1:
            <img width="16px" height="16px" src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Nuvola_Green_Plus.svg/128px-Nuvola_Green_Plus.svg.png" />
        % elif n.news.class_id == -1:
            <img width="16px" height="16px" src="http://icons.mysitemyway.com/wp-content/gallery/simple-red-square-icons-symbols-shapes/129883-simple-red-square-icon-symbols-shapes-minimize.png" />
        % else:
            <img width="16px" height="16px" src="http://www.clker.com/cliparts/1/3/e/6/1194989228908147779led_circle_grey.svg.med.png" />
        % endif
            <small>[<b>${n.news.reads}</b>]</small>
                -
        ${round(n.similarity, 3)} - <a href="/news/news?news_id=${n.news_id_1}">${n.news.title[:40]}</a> <a href="${n.news.link}"><-></a>
                                            >> <a href="/news/news?news_id=${n.news_id_2}">${n.news_id_2}</a>
            <small>${n.news.excerpt[:100]}</small>
        <br/>
    % endfor
</div>

<%def name="rightcontent()">
	Seznam
</%def>
